package cn.weakup.designpattern.c_structural.decorator;

/**
 * @author lixj
 * @version 1.0.0
 * @date 2022/6/4
 * @desc Component定义对象接口，添加职责
 *       模拟Spring的HandlerInterceptor:
 *       实际的单点登录开发会基于； org.springframework.web.servlet.HandlerInterceptor 实现
 */
public interface HandlerInterceptor {
    boolean preHandle(String request, String response, Object handler);
}
